package com.fivezerotwo.springbootserver.common.ReturnModel;

import lombok.Data;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;

/**
 *分页结果
 * Created by qiqi on 2018/7/25 23:11
 */
@Data
@Accessors(chain = true)
public class ResultPage<T> implements Serializable {
    private static final long serialVersionUID = 7782440706091551422L;

    private int total;
    private List<T> data;

    public ResultPage() {
        total = 0;
        data = new ArrayList<T>();
    }

}
